<?
if($_GET['Jebus']!=2 || $_GET['P']!='Chocochoco')
	die();
$T=1;
$P='Jeb';
require("Vars.php");
?>
<script type="text/javascript">
function showLocalTime(container){
	this.container=document.getElementById(container)
	var servertimestring='<? print date("F d, Y H:i:s", time())?>'
	this.localtime=this.serverdate=new Date(servertimestring)
	this.localtime.setTime(this.serverdate.getTime())
	this.updateTime()
	this.updateContainer()
}

showLocalTime.prototype.updateTime=function(){
	var thisobj=this
	this.localtime.setSeconds(this.localtime.getSeconds()+1)
	setTimeout(function(){thisobj.updateTime()}, 1000) //update time every second
}

showLocalTime.prototype.updateContainer=function(){
	var thisobj=this
	var hour=this.localtime.getHours()
	var minutes=this.localtime.getMinutes()
	var seconds=this.localtime.getSeconds()
	if(seconds%10==0) window.location.reload()
	this.container.innerHTML=formatField(hour)+":"+formatField(minutes)+":"+formatField(seconds)
	setTimeout(function(){thisobj.updateContainer()}, 1000) //update container every second
}

function formatField(num){
	return (num<=9)? "0"+num : num//if this is minute or sec field
}
</script>
<div id="timecontainer"></div>
<script type="text/javascript">
	new showLocalTime("timecontainer")
</script>
<style>
	p{
		text-align:center;
		color:#930;
		font-size:16px;
		margin:0;
	}
	hr{
		width:80%;
		border:1px dotted #900;
	}
	li{
		color:#009;
		font-size:12px;
	}
</style>